package com.evil.application.pojo.dto.view.config.filter;

import com.evil.common.application.enums.filter.FilterSourceTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 保存 应用筛选
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ModifyFilterReqDTO extends FilterSourceDTO {

    private Long enterpriseId;

    private List<FilterGroupDTO> filters;

    public ModifyFilterReqDTO(Integer sourceType, Long sourceId, Long enterpriseId, List<FilterGroupDTO> filters) {
        super(sourceType, sourceId);
        this.enterpriseId = enterpriseId;
        this.filters = filters;
    }

    public ModifyFilterReqDTO(FilterSourceTypeEnum sourceTypeEnum, Long enterpriseId, Long sourceId) {
        super(sourceTypeEnum, sourceId);
        this.enterpriseId = enterpriseId;
    }
}
